<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {BaseGrid} from '../../../../base/components/BaseGrid';
import {${declarationName}Service} from '../../services/programme.service';

@Component({
  selector: 'app-${declarationNameFirstLetterLower}-grid',
  templateUrl: './${declarationNameFirstLetterLower}-grid.component.html',
  styles: []
})
export class ${declarationName}GridComponent extends BaseGrid implements OnInit {

  @Output() onProject = new EventEmitter<{ entity: object }>();

  constructor(private ${declarationNameFirstLetterLower}Service: ${declarationName}Service) {
    super();
  }

  queryData(params) {
    return this.${declarationNameFirstLetterLower}Service.findProgrammeByPage(params);
  }

}
